package jiekou;

public class Teacher extends Person implements Driver{

    private String no;

    public void teach() {
        System.out.println(getName()+"老师在上java课程");
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    @Override
    public void run() {
        System.out.println(getName()+"老师在开车");
    }
}
